#ifndef OSEVENTTHREAD_H
#define OSEVENTTHREAD_H

#include <QThread>
#include <QMutex>

class QSharedMemory;

class OSEventThread : public QThread
{
    Q_OBJECT
public:
    explicit OSEventThread(QObject *parent = 0);

    void stop();

private:
    virtual void run();//任务处理线程

signals:
    void keySignal(int key, int way);

private:
    bool stopped;
    QMutex m_lock;

#ifndef __linux
    QSharedMemory *m_sharedMemory;
#endif
    
};

#endif // OSEVENTTHREAD_H
